/**
 * date: 2018/08/16
 * author: XGP
 * des:参数缓存
 */
const params = {
  state: {
    params: {}
  },
  mutations: {
    ADD_PARAMS: (state, data) => {
      if (data) {
        state.params[data.paramCode] = data.items
      }
    }
  },
  actions: {
    addParams({ commit }, data) {
      commit('ADD_PARAMS', data)
    }
  }
}

export default params
